<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sistema Acadêmico Web - SAW</title>
</head>
<body>

<h1>Sistema Acadêmico Web - SAW</h1>

<p>Escolha a categoria que deseja trabalhar:</p>
<p><form action="index.jsp" method="post">
<button type="submit" name="categoria" value="aluno.jsp">Aluno</button>
<button type="submit" name="categoria" value="professor.jsp">Professor</button>
<button type="submit" name="categoria" value="turma.jsp">Turma</button>
<button type="submit" name="categoria" value="curso.jsp">Curso</button> 
</form>
</p>

<%
if( request.getParameter("categoria") != null ) {
	String tipoCategoria = request.getParameter("categoria");
	response.sendRedirect(tipoCategoria);
}
%>

</body>
</html>